.commentsCard {
  max-width: 1200px;
  margin: 24px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);

  :global {
    .ant-card-body {
      padding: 24px;
    }

    .ant-comment {
      background: #fafafa;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .ant-comment-content-author {
      margin-bottom: 8px;
    }

    .ant-comment-content-author-name {
      color: #333;
      font-weight: 500;
    }

    .ant-comment-content-detail p {
      white-space: pre-wrap;
      margin-bottom: 0;
    }

    .ant-comment-avatar img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }

    .ant-list-empty-text {
      padding: 24px 0;
    }
  }
}

.commentList {
  margin-bottom: 24px;
}

.commentEditor {
  border-top: 1px solid #f0f0f0;
  padding-top: 24px;

  :global {
    .ant-comment {
      background: transparent;
      padding: 0;
      margin-bottom: 0;
    }

    .ant-form-item {
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .ant-input {
      border-radius: 6px;
      resize: none;
      
      &:focus {
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
      }
    }

    .ant-btn {
      height: 40px;
      padding: 0 24px;
      font-size: 16px;
      border-radius: 20px;
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-2px);
      }
    }
  }
}

// 暗色主题适配
@media (prefers-color-scheme: dark) {
  .commentsCard {
    background: #1f1f1f;

    :global {
      .ant-comment {
        background: #141414;
      }

      .ant-comment-content-author-name {
        color: #fff;
      }

      .ant-comment-content-detail p {
        color: #999;
      }
    }
  }

  .commentEditor {
    border-top-color: #303030;

    :global {
      .ant-input {
        background: #141414;
        border-color: #434343;
        color: #fff;

        &:focus {
          border-color: #177ddc;
          box-shadow: 0 0 0 2px rgba(23, 125, 220, 0.1);
        }
      }

      .ant-btn {
        background: #177ddc;
        border-color: #177ddc;
        color: #fff;

        &:hover {
          background: #40a9ff;
          border-color: #40a9ff;
        }
      }
    }
  }
}

// 响应式调整
@media screen and (max-width: 576px) {
  .commentsCard {
    margin: 16px;

    :global {
      .ant-card-body {
        padding: 16px;
      }

      .ant-comment {
        padding: 12px;
      }
    }
  }

  .commentEditor {
    padding-top: 16px;

    :global {
      .ant-btn {
        height: 36px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 18px;
      }
    }
  }
}